{yun:}include file="$wapstyle/member/cheader.htm"{/yun}
<section class="wap_member">
    <div class="wap_member_comp_h1" style="position:relative"><span>兼职管理</span></div>

    <div class="wap_member_job_show">
        {yun:}foreach item=v from=$rows{/yun}
        <div class="wap_member_msg ">
            <div class="wap_member_date">
                <span class="yun_m_job_date_n">&nbsp;
					<a href="{yun:}url m=wap c=part a=show id=$v.id{/yun}" class=" job_list_jobname com_member_hr_cblue">{yun:}$v.name{/yun}</a>
				</span>

                <div class="wap_member_date_r">
                    {yun:}if $v.edate!=0&&$v.edate < time(){/yun} 
                    	<span class="wap_member_ygq">已过期</span>
                   	{yun:}elseif $v.state==1{/yun} 
                   		已审核 
                   	{yun:}elseif $v.state==3{/yun}
                        <span class="wap_member_wtg">未通过</span> 
                   	{yun:}elseif $v.state==0{/yun}
                        <em>未审核</em> 
                   	{yun:}/if{/yun}
                </div>
            </div>

            <div class="yun_m_job_list_zt">
                兼职报名：{yun:}$v.applynum{/yun}
                <span class="wap_member_msg_job_s">浏览量：{yun:}$v.hits{/yun} </span>
            </div>

            <div class="yun_m_job_list_zt">
                有效期至：{yun:}if $v.edate>0{/yun}{yun:}$v.edate|date_format:'%Y-%m-%d'{/yun}{yun:}else{/yun}长期招聘{yun:}/if{/yun}
            </div>

            {yun:}if $v.deadline gt 0{/yun}
            <div class="yun_m_job_list_zt">报名截止：{yun:}$v.deadline|date_format:"%Y-%m-%d"{/yun}</div>
            {yun:}/if{/yun}

            <div class="yun_m_job_list_zt">更新日期：{yun:}$v.lastupdate|date_format:"%Y-%m-%d"{/yun}</div>

            <div class="yun_member_bth">
            	<a href="index.php?c=partadd&id={yun:}$v.id{/yun}" class="yun_member_partsub yun_member_bth2">修改</a>
            	<a href="javascript:void(0)" onclick="layer_del('确定要删除？','index.php?c=partdel&id={yun:}$v.id{/yun}');" class="yun_member_partsub">删除</a>
                {yun:}if $v.state==1{/yun}
                	<a href="javascript:void(0)" class="yun_member_sub  " onclick="refreshPartWap('{yun:}$v.id{/yun}')">刷新</a>
                {yun:}/if{/yun}
 
               	<!-- 
               	{yun:}if $v.deadline!=0{/yun}
                	<a href="javascript:void(0)" class="yun_member_sub  " onclick="gotime('{yun:}$v.id{/yun}','{yun:}$v.deadline|date_format:'%Y-%m-%d'{/yun}')">延期</a>
                {yun:}/if{/yun}
                -->
                
                {yun:}if $v.applynum{/yun}
                	<a href="index.php?c=partapply" class="yun_member_partsub yun_member_bth2">查看报名</a>
                {yun:}/if{/yun}
            </div>
        </div>
        {yun:}foreachelse{/yun}
        <div class="wap_member_no">您暂时还没有兼职
            <div>
                <a href="javascript:void(0)" onclick="jobadd_url('{yun:}$statis.addpartjobnum{/yun}','{yun:}$config.integral_partjob{/yun}','part','{yun:}$config.com_integral_online{/yun}','{yun:}$config.integral_proportion{/yun}');" class="wap_member_no_submit">发布兼职</a>
            </div>
        </div>
        {yun:}/foreach{/yun}

        <div class="pages" style="margin-top:10px;"> {yun:}$pagenav{/yun}</div>
    </div>
    <!--没有职位提示-->
</section>
<script>
    function refreshPartWap(jobId) {
        var weburl = '{yun:}url m=wap{/yun}';
        var integral = '{yun:}$config.integral_partjobefresh{/yun}';
        var online = '{yun:}$config.com_integral_online{/yun}';
        var pro = '{yun:}$config.integral_proportion{/yun}';
        var ajaxUrl = weburl + "member/index.php?c=ajax_refresh_part";

        $.post(ajaxUrl, {
            partid: jobId
        }, function(data) {
            data = eval('(' + data + ')');
            if(data.error == 1) {
                layermsg(data.msg, 2, 9, function() {
                    window.location.href = '';
                });
            } else if(data.error == 2) {
                if(online == 3) {
                    layer.open({
                        content: "您的等级特权已用完，继续操作将消费" + integral * pro + "积分，是否继续？",
                        btn: ['继续', '取消'],
                        shadeClose: false,
                        yes: function() {
                            window.location.href = "index.php?c=getserver&id=" + jobId + "&server=" + 13;;
                        }
                    });
                } else {
                    layer.open({
                        content: "您的等级特权已用完，继续操作将消费" + integral + "元，是否继续？",
                        btn: ['继续', '取消'],
                        shadeClose: false,
                        yes: function() {
                            window.location.href = "index.php?c=getserver&id=" + jobId + "&server=" + 13;;
                        }
                    });
                }

            } else {
                if(data.url) {
                    layermsg(data.msg, 2, function() {
                        location.href = "index.php?c={yun:}if $config.com_vip_type==2||$config.com_vip_type==0{/yun}rating{yun:}else{/yun}time{yun:}/if{/yun}"
                    });
                } else {
                    layermsg(data.msg, 2, 8);
                }
            }

        });
    }
</script>
{yun:}include file="$wapstyle/footer.htm"{/yun}